home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
TECHNICA
/
AUTOCAD
/
H107.ZIP
/
APR91.ZIP
/
TIP648.LSP
< prev
next >
Wrap
Text File
|
1991-04-11
|
651b
|
24 lines
;TIP648.LSP Match Entities (c)1991, Rob Tushek
(defun C:MATCH (/ SS DC DL DLT EC)
(menucmd "S=SELECT")
(prompt "Pick entities to change: ")
(setq SS (ssget))
(setq EC (entsel "Entity to match: "))
(setq DC (cdr (assoc 62 (entget
(car EC)))))
(setq DL (cdr (assoc 8 (entget
(car EC)))))
(setq DLT (cdr (assoc 6 (entget
(car EC)))))
(progn
(if (= DLT nil) (setq DLT "BYLAYER"))
(if (= DC nil) (setq DC "BYLAYER"))
(command "CHANGE" SS "" "P" "LT" DLT
"LA" DL "C" DC "" )
)
(prompt "Entities changed to:.....\n ")
(LIST "Layer:..>>" DL "Color:..>>" DC
"Ltype:..>>" DLT)
)